<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QtMmlDocument Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qt_mml_document-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QtMmlDocument Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_qt_mml_document.html" title="The QtMmlDocument class renders mathematical formulas written in MathML 2.0. ">QtMmlDocument</a> class renders mathematical formulas written in MathML 2.0.  
 <a href="class_qt_mml_document.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a38d53f9b6b073434a4e0ee458b9d8eca"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a38d53f9b6b073434a4e0ee458b9d8eca">QtMmlDocument</a> ()</td></tr>
<tr class="separator:a38d53f9b6b073434a4e0ee458b9d8eca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09f03d96a88be2e42a7a14c633a75e94"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a09f03d96a88be2e42a7a14c633a75e94">~QtMmlDocument</a> ()</td></tr>
<tr class="separator:a09f03d96a88be2e42a7a14c633a75e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add5a21595194288f647e020f36448587"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#add5a21595194288f647e020f36448587">clear</a> ()</td></tr>
<tr class="separator:add5a21595194288f647e020f36448587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08e287efbea760c51f22fec4a4c5067e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a08e287efbea760c51f22fec4a4c5067e">setContent</a> (QString text, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0)</td></tr>
<tr class="separator:a08e287efbea760c51f22fec4a4c5067e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b9c85044e6715ff778efd607cc1309"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a76b9c85044e6715ff778efd607cc1309">paint</a> (QPainter *p, const QPoint &amp;pos) const</td></tr>
<tr class="separator:a76b9c85044e6715ff778efd607cc1309"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01cd1b6f95f011fa3a9a9292e833528e"><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a01cd1b6f95f011fa3a9a9292e833528e">size</a> () const</td></tr>
<tr class="separator:a01cd1b6f95f011fa3a9a9292e833528e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee262410ce903f2a58c1eac22311266a"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#aee262410ce903f2a58c1eac22311266a">fontName</a> (<a class="el" href="class_qt_mml_widget.html#ac3fde39f7b605557d80bded69f985d2a">QtMmlWidget::MmlFont</a> type) const</td></tr>
<tr class="separator:aee262410ce903f2a58c1eac22311266a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e722bc5c964444616ef4d9e640d9350"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a6e722bc5c964444616ef4d9e640d9350">setFontName</a> (<a class="el" href="class_qt_mml_widget.html#ac3fde39f7b605557d80bded69f985d2a">QtMmlWidget::MmlFont</a> type, const QString &amp;name)</td></tr>
<tr class="separator:a6e722bc5c964444616ef4d9e640d9350"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6988266de54f91cdc03e3d20915828c1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#a6988266de54f91cdc03e3d20915828c1">baseFontPointSize</a> () const</td></tr>
<tr class="separator:a6988266de54f91cdc03e3d20915828c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedb2bedfbc96f3fb41cd04ecf3f327f2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mml_document.html#aedb2bedfbc96f3fb41cd04ecf3f327f2">setBaseFontPointSize</a> (int <a class="el" href="class_qt_mml_document.html#a01cd1b6f95f011fa3a9a9292e833528e">size</a>)</td></tr>
<tr class="separator:aedb2bedfbc96f3fb41cd04ecf3f327f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_qt_mml_document.html" title="The QtMmlDocument class renders mathematical formulas written in MathML 2.0. ">QtMmlDocument</a> class renders mathematical formulas written in MathML 2.0. </p>
<p>This class provides a direct API to the rendering engine used by <a class="el" href="class_qt_mml_widget.html" title="The QtMmlWidget class renders mathematical formulas written in MathML 2.0. ">QtMmlWidget</a>. It can be used to paint MathML inside other widgets.</p>
<p>All methods work the same as the corresponding methods in <a class="el" href="class_qt_mml_widget.html" title="The QtMmlWidget class renders mathematical formulas written in MathML 2.0. ">QtMmlWidget</a>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a38d53f9b6b073434a4e0ee458b9d8eca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38d53f9b6b073434a4e0ee458b9d8eca">&#9670;&nbsp;</a></span>QtMmlDocument()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QtMmlDocument::QtMmlDocument </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs an empty MML document. </p>

</div>
</div>
<a id="a09f03d96a88be2e42a7a14c633a75e94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09f03d96a88be2e42a7a14c633a75e94">&#9670;&nbsp;</a></span>~QtMmlDocument()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QtMmlDocument::~QtMmlDocument </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destroys the MML document. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a6988266de54f91cdc03e3d20915828c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6988266de54f91cdc03e3d20915828c1">&#9670;&nbsp;</a></span>baseFontPointSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QtMmlDocument::baseFontPointSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the point size of the font used to render expressions whose scriptlevel is 0.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mml_document.html#aedb2bedfbc96f3fb41cd04ecf3f327f2">setBaseFontPointSize()</a> <a class="el" href="class_qt_mml_document.html#aee262410ce903f2a58c1eac22311266a">fontName()</a> <a class="el" href="class_qt_mml_document.html#a6e722bc5c964444616ef4d9e640d9350">setFontName()</a> </dd></dl>

</div>
</div>
<a id="add5a21595194288f647e020f36448587"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add5a21595194288f647e020f36448587">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtMmlDocument::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Clears the contents of this MML document. </p>

</div>
</div>
<a id="aee262410ce903f2a58c1eac22311266a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee262410ce903f2a58c1eac22311266a">&#9670;&nbsp;</a></span>fontName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QtMmlDocument::fontName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_mml_widget.html#ac3fde39f7b605557d80bded69f985d2a">QtMmlWidget::MmlFont</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the name of the font used to render the font <em>type</em>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mml_document.html#a6e722bc5c964444616ef4d9e640d9350">setFontName()</a> <a class="el" href="class_qt_mml_document.html#aedb2bedfbc96f3fb41cd04ecf3f327f2">setBaseFontPointSize()</a> <a class="el" href="class_qt_mml_document.html#a6988266de54f91cdc03e3d20915828c1">baseFontPointSize()</a> <a class="el" href="class_qt_mml_widget.html#ac3fde39f7b605557d80bded69f985d2a">QtMmlWidget::MmlFont</a> </dd></dl>

</div>
</div>
<a id="a76b9c85044e6715ff778efd607cc1309"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76b9c85044e6715ff778efd607cc1309">&#9670;&nbsp;</a></span>paint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtMmlDocument::paint </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPoint &amp;&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Renders this MML document with the painter <em>p</em> at position <em>pos</em>. </p>

</div>
</div>
<a id="aedb2bedfbc96f3fb41cd04ecf3f327f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedb2bedfbc96f3fb41cd04ecf3f327f2">&#9670;&nbsp;</a></span>setBaseFontPointSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtMmlDocument::setBaseFontPointSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the point <em>size</em> of the font used to render expressions whose scriptlevel is 0.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mml_document.html#a6988266de54f91cdc03e3d20915828c1">baseFontPointSize()</a> <a class="el" href="class_qt_mml_document.html#aee262410ce903f2a58c1eac22311266a">fontName()</a> <a class="el" href="class_qt_mml_document.html#a6e722bc5c964444616ef4d9e640d9350">setFontName()</a> </dd></dl>

</div>
</div>
<a id="a08e287efbea760c51f22fec4a4c5067e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08e287efbea760c51f22fec4a4c5067e">&#9670;&nbsp;</a></span>setContent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QtMmlDocument::setContent </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString *&#160;</td>
          <td class="paramname"><em>errorMsg</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>errorLine</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>errorColumn</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the MathML expression to be rendered. The expression is given in the string <em>text</em>. If the expression is successfully parsed, this method returns true; otherwise it returns false. If an error occured <em>errorMsg</em> is set to a diagnostic message, while <em>errorLine</em> and <em>errorColumn</em> contain the location of the error. Any of <em>errorMsg</em>, <em>errorLine</em> and <em>errorColumn</em> may be 0, in which case they are not set.</p>
<p><em>text</em> should contain MathML 2.0 presentation markup elements enclosed in a &lt;math&gt; element. </p>

</div>
</div>
<a id="a6e722bc5c964444616ef4d9e640d9350"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e722bc5c964444616ef4d9e640d9350">&#9670;&nbsp;</a></span>setFontName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtMmlDocument::setFontName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_mml_widget.html#ac3fde39f7b605557d80bded69f985d2a">QtMmlWidget::MmlFont</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the name of the font used to render the font <em>type</em> to <em>name</em>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mml_document.html#aee262410ce903f2a58c1eac22311266a">fontName()</a> <a class="el" href="class_qt_mml_document.html#aedb2bedfbc96f3fb41cd04ecf3f327f2">setBaseFontPointSize()</a> <a class="el" href="class_qt_mml_document.html#a6988266de54f91cdc03e3d20915828c1">baseFontPointSize()</a> <a class="el" href="class_qt_mml_widget.html#ac3fde39f7b605557d80bded69f985d2a">QtMmlWidget::MmlFont</a> </dd></dl>

</div>
</div>
<a id="a01cd1b6f95f011fa3a9a9292e833528e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01cd1b6f95f011fa3a9a9292e833528e">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize QtMmlDocument::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the size of this MML document, as rendered, in pixels. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/mathml/<a class="el" href="qtmmlwidget_8h_source.html">qtmmlwidget.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/mathml/qtmmlwidget.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
